package com.levy.hadoop;

import java.io.OutputStream;
import java.net.URI;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.util.Progressable;

/**
 * Demonstrates how to read excel styles for cells
 */
public class HadoopCreateDIR {

	public static void main(String[] args) throws Exception {
		
		System.out.println("Starting hadoop test...");
		String dst = "/hadoop/tmp/test";
		Configuration conf = new Configuration();

		FileSystem fs = FileSystem.get(URI.create(dst), conf);
		OutputStream out = fs.create(new Path(dst), new Progressable() {
			public void progress() {
				System.out.print(".");
			}
		});
		System.out.println("Over hadoop test...");
	}

}